package com.reiuy.entity;

public class Cart {
    private Integer cartid;
    private Integer ownerid;
    //购物车的所有者的id,即user表中的userid
    private Integer goodid;
    private Integer quantity;
    //数量
    private String state;
    //单独定义一个字段用来表示商品在购物车中的状态
    //定义为 OVERDUE 过期
    //      OUTOFSTOCK 缺货


    public Integer getCartid() {
        return cartid;
    }

    public void setCartid(Integer cartid) {
        this.cartid = cartid;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public Integer getGoodid() {
        return goodid;
    }

    public void setGoodid(Integer goodid) {
        this.goodid = goodid;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartid=" + cartid +
                ", ownerid=" + ownerid +
                ", goodid=" + goodid +
                ", quantity=" + quantity +
                ", state='" + state + '\'' +
                '}';
    }
}


